package com.woniuxy.service.impl;

import com.woniuxy.mappers.GoodMapper;
import com.woniuxy.model.Good;
import com.woniuxy.service.GoodService;

public class GoodServiceImpl implements GoodService {
    //调用数据访问层
    private GoodMapper goodDao ;

    public void setGoodDao(GoodMapper goodDao) {
        this.goodDao = goodDao;
    }

    @Override
    public Good findGoodById(Integer id) {
        return goodDao.findGoodById(id);
    }
}
